<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let n = +prompt('请输入星星的行数')
    let m = +prompt('请输入星星的列数')
    for (let i = 1; i <= n; i++) {
      for (let j = 1; j <= m; j++) {
        document.write('⭐')
      }
      document.write('<br>')
    }
  </script>
</body>

</html>